#include <iostream>
#include <vector>
using namespace std;

int main()
{
	// C++11 auto 关键字
	vector<int> numbers = { 1, 2, 3, 4, 5 };
	for (auto num : numbers) {
		cout << num << " ";
	}
	cout << endl;

	// C++11 基于范围的 for 循环
	for (int num : {
				1, 2, 3, 4, 5
			}) {
		cout << num << " ";
	}
	cout << endl;

	system("pause");
	return 0;
}